package com.leon.spring.day01.demo2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

/**
 * Created by Administrator on 2017/4/15.
 */
public class TestComputer {
    public static void main(String[] args) {
        ApplicationContext ac =
                new FileSystemXmlApplicationContext("E:\\javaProj\\code\\spring01\\src\\com\\leon\\spring\\day01\\applicationContext.xml");

        Computer computer = ac.getBean("computer", Computer.class);
        computer.execute();

        Computer1 computer1 = ac.getBean("computer1", Computer1.class);
        computer1.execute();


        System.out.println(ac);

    }
}
